using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Lapas.Common.Forms
{
    public partial class LoadingForm : Form
    {
        public LoadingForm()
        {
            InitializeComponent();            
        }
        public LoadingForm(string text)
        {
            InitializeComponent();
            label1.Text = text;
            this.Text = text;
            LoadingForm_SetSize();
        }
        public void LoadingForm_SetSize()
        {
            int xLocation = pictureBox1.Size.Width + label1.Size.Width + 13;
            int yLocation = this.Size.Height;
            this.Size = new Size(new Point(xLocation, yLocation));
        }
    }
}